#include <stdio.h>
#include <stdlib.h>
#include "linkqueue.h"

int main(int argc, char *argv[]) 
{
	linkqueue * lq = queue_create();
	if (lq == NULL)
        return -1;
    
    enqueue(lq, 10);
    enqueue(lq, 20);
    enqueue(lq, 30);
    enqueue(lq, 40);
    
/*    while(queue_empty(lq) != 1)
    {
    	printf("dequeue:%d\n", dequeue(lq));
	}
*/	
	queue_clear(lq);
	lq = queue_free(lq);
	enqueue(lq, 40);
	
	return 0;
}
